﻿<Window x:Class="Savannah.PresentationWPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Savannah.PresentationWPF"
        mc:Ignorable="d"
        Title="Szavanna szimuláció" Height="500" Width="600" Icon="icon.ico">
    <Grid>
       <Grid.RowDefinitions>
            <RowDefinition Height="10"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="15"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="15"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="15"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="15"/>
            <RowDefinition Height="25"/>
            <RowDefinition Height="10"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="100"/>

            <ColumnDefinition Width="60"/>
            <ColumnDefinition Width="50"/>
            <ColumnDefinition Width="50"/>
            <ColumnDefinition Width="50"/>
            <ColumnDefinition Width="50"/>
            <ColumnDefinition Width="50"/>
            <ColumnDefinition Width="60"/>
            
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="10"/>
        </Grid.ColumnDefinitions>
        <Label x:Name="label_species" Content="Kérem adja meg a szavanna méretét és a fajok példányszámát!" HorizontalAlignment="Center" VerticalAlignment="Top" Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="7"/>
        <Label x:Name="label_survival" Content="A faj fenntartáshoz minimum 2 példány szükséges!" HorizontalAlignment="Center" VerticalAlignment="Top" Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="7"/>

        <Button x:Name="button_start" Content="Indítás" HorizontalAlignment="Center" VerticalAlignment="Center" Width="75" Click="button_start_Click" Grid.Row="18" Grid.Column="9"/>
        <Button x:Name="button_close" Content="Kilépés" HorizontalAlignment="Center" VerticalAlignment="Center" Width="75" Click="button_close_Click" Grid.Row="18" Grid.Column="1"/>

        <Label x:Name="label_size" Content="Szavanna (x, y)" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="5" Grid.Column="6" Grid.ColumnSpan="2"/>
        <Label x:Name="label_giraffe" Content="Zsiráf" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="7" Grid.Column="7" Grid.ColumnSpan="2"/>
        <Label x:Name="label_gazelle" Content="Gazella" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="8" Grid.Column="7" Grid.ColumnSpan="2"/>
        <Label x:Name="label_hyena" Content="Hiéna" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="10" Grid.Column="7" Grid.ColumnSpan="2"/>
        <Label x:Name="label_lion" Content="Oroszlán" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="11" Grid.Column="7" Grid.ColumnSpan="2"/>
        <Label x:Name="label_crocodile" Content="Krokodil" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="12" Grid.Column="7" Grid.ColumnSpan="2" IsEnabled="false"/>
        <Label x:Name="label_waterp" Content="Vízi növény" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="14" Grid.Column="7" Grid.ColumnSpan="2" IsEnabled="false"/>
        <Label x:Name="label_graas" Content="Szárazföldi növény" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="15" Grid.Column="7" Grid.ColumnSpan="2"/>

        <TextBox x:Name="textBox_sizeX" HorizontalAlignment="Center" Height="24" TextWrapping="Wrap" Text="4" VerticalAlignment="Center" Width="44" TextChanged="textBox_sizeX_TextChanged" Grid.Row="5" Grid.Column="8"/>
        <TextBox x:Name="textBox_sizeY" HorizontalAlignment="Center" Height="24" TextWrapping="Wrap" Text="4" VerticalAlignment="Center" Width="46" TextChanged="textBox_sizeY_TextChanged" Grid.Row="5" Grid.Column="9"/>
        <TextBox x:Name="textBox_giraffe" HorizontalAlignment="Center" Height="26" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" Width="44" TextChanged="textBox_giraffe_TextChanged" Grid.Row="7" Grid.Column="9" Margin="26,2,30,2"/>
        <TextBox x:Name="textBox_gazelle" HorizontalAlignment="Center" Height="24" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" Width="44" TextChanged="textBox_gazelle_TextChanged" Grid.Row="8" Grid.Column="9"/>
        <TextBox x:Name="textBox_hyena" HorizontalAlignment="Center" Height="26" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" Width="44" TextChanged="textBox_hyena_TextChanged" Grid.Row="10" Grid.Column="9"/>
        <TextBox x:Name="textBox_lion" HorizontalAlignment="Center" Height="26" TextWrapping="Wrap" Text="3" VerticalAlignment="Center" Width="44" TextChanged="textBox_lion_TextChanged" Grid.Row="11" Grid.Column="9"/>
        <TextBox x:Name="textBox_crocodile" HorizontalAlignment="Center" Height="26" TextWrapping="Wrap" Text="" VerticalAlignment="Center" Width="44" TextChanged="textBox_crocodile_TextChanged" Grid.Row="12" Grid.Column="9" IsEnabled="false"/>
        <TextBox x:Name="textBox_waterp" HorizontalAlignment="Center" Height="26" TextWrapping="Wrap" Text="" VerticalAlignment="Center" Width="44" TextChanged="textBox_waterp_TextChanged" Grid.Row="14" Grid.Column="9" IsEnabled="false"/>
        <TextBox x:Name="textBox_grass" HorizontalAlignment="Center" Height="26" TextWrapping="Wrap" Text="8" VerticalAlignment="Center" Width="44" TextChanged="textBox_grass_TextChanged" Grid.Row="15" Grid.Column="9"/>
        
        <Image Source="/pictures/savanna.png" Name="ImageViewer1"  Stretch="Fill"  Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="7" Grid.RowSpan="12"/>

        <Label x:Name="label_error" Content="" HorizontalAlignment="Center" Foreground="Red" VerticalAlignment="Top" Width="246" Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="7"/>
    </Grid>
</Window>
